{% extends 'base.html' %}
{% import 'include/_macros.html' as macros %}
{% block title %} {{ user.username }}{{ title }}{% endblock %}
{% block content %}
    {{ super() }}
<div class="container">
        <div class="page-header">
            {{ user.username }}{{ title }}
        </div>
</div>
    <div class="container">
        <div class="row">
            <div class="col-md-12 well bs-component">
                <table class="table table-hover followers">
                    <thread><tr><th>用户名</th><th>时间</th></tr></thread>
                    {% for follow in follows %}
                    {% if follow.user != user %}
                    <tr>
                    <td>
                    <a href="{{ url_for('main.user', username=follow.user.username) }}">
                        <img class="img-rounded" src="{{ follow.user.gravatar(size=32) }}">
                        {{ follow.user.username }}
                    </a>
                    </td>
                        <td>
                        {{ moment(follow.timestamp).format('L') }}
                        </td>
                    </tr>
                    {% endif %}
                {% endfor %}
                </table>
            <nav class="text-center">
                <div class="pagination">
                    {{ macros.pagination_widget(pagination, 'main.followers', username=user.username) }}
                </div>
            </nav>
            </div>
        </div>
    </div>
{% endblock %}